<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
  Generated by kissy-xtemplate.*/
KISSY.add('overlay/close-xtpl', function () {
    return function (scopes, S, undefined) {
        var buffer = &quot;&quot;,
            config = this.config,
            engine = this,
            utils = config.utils;
        var runBlockCommandUtil = utils[&quot;runBlockCommand&quot;],
            getExpressionUtil = utils[&quot;getExpression&quot;],
            getPropertyOrRunCommandUtil = utils[&quot;getPropertyOrRunCommand&quot;];
        buffer += '';
        var config0 = {};
        var params1 = [];
        var id2 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;closable&quot;, 0, 1, undefined, true);
        params1.push(id2);
        config0.params = params1;
        config0.fn = function (scopes) {
            var buffer = &quot;&quot;;
            buffer += '\r\n&lt;a href=&quot;javascript:void(\'close\')&quot;\r\n   id=&quot;ks-overlay-close-';
            var id3 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 3, undefined, false);
            buffer += getExpressionUtil(id3, true);
            buffer += '&quot;\r\n   class=&quot;';
            var config5 = {};
            var params6 = [];
            params6.push('close');
            config5.params = params6;
            var id4 = getPropertyOrRunCommandUtil(engine, scopes, config5, &quot;getBaseCssClasses&quot;, 0, 4, true, undefined);
            buffer += id4;
            buffer += '&quot;\r\n   role=\'button\'&gt;\r\n    &lt;span class=&quot;';
            var config8 = {};
            var params9 = [];
            params9.push('close-x');
            config8.params = params9;
            var id7 = getPropertyOrRunCommandUtil(engine, scopes, config8, &quot;getBaseCssClasses&quot;, 0, 6, true, undefined);
            buffer += id7;
            buffer += '&quot;&gt;close&lt;/span&gt;\r\n&lt;/a&gt;\r\n';
            return buffer;
        };
        buffer += runBlockCommandUtil(engine, scopes, config0, &quot;if&quot;, 1);
        buffer += '\r\n';
        return buffer;
    }
});</pre>
</body>
</html>
